package xiaodaow.xiaodao360.com.previewphoto;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;

import xiaodaow.xiaodao360.com.previewphoto.preview.PreviewPhoto;

public class MainActivity extends Activity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        final ImageView imageView1 = (ImageView) this
                .findViewById(R.id.xi_button1);
        imageView1.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                PreviewPhoto.startPreview(MainActivity.this, imageView1);
            }
        });

        final ImageView imageView2 = (ImageView) this
                .findViewById(R.id.xi_button2);
        imageView2.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                PreviewPhoto.startPreview(MainActivity.this, imageView2);
            }
        });

        final ImageView imageView3 = (ImageView) this
                .findViewById(R.id.xi_button3);
        imageView3.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                PreviewPhoto.startPreview(MainActivity.this, imageView3);
            }
        });

    }

}
